<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--<head >th:replace="fragments/header :: header"-->
<head>
    <script src="../../js/utils/fileutils.js"></script>
    <script src="../../js/jquery-3.1.1.min.js" th:src="@{/js/jquery-3.1.1.min.js}"></script>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar items">
                <li th:each="menu:${menuModel.list}"><a href="javascript:void(0)"  data-th-attr="url=${menu.href}" th:text="${menu.name}" class="list-item"></a></li>
                <!--   <li><a href="javascript:void(0)" data-th-attr="url='users'" class="list-item">用户管理</a></li>
                   <li><a href="javascript:void(0)" data-th-attr="url='roles'" class="list-item">权限管理</a></li>
                   <li><a href="#">Analytics</a></li>-->
                 <li><a href="/logout">退出登录</a></li>

            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <form method="POST" enctype="multipart/form-data" action="/file/upload">
                <p>
                    文件：<input type="file" name="file" />
                </p>
                <p>
                    <input type="submit" value="上传" />
                </p>
            </form>
            <hr/>
            多文件上传
            <form method="POST" enctype="multipart/form-data"
                  action="/file/uploads">
                <p>
                    文件1：<input type="file" name="file" />
                </p>
                <p>
                    文件2：<input type="file" name="file" />
                </p>
                <p>
                    文件3：<input type="file" name="file" />
                </p>
                <p>
                    <input type="submit" value="上传" />
                </p>
            </form>
            <hr/>
            js上传文件
                <p>
                    文件1：<input  class="file" type="file" name="file" />
                    文件2：<input  class="file" type="file" name="file" />
                </p>
                <p>
                    <input type="button" value="上传" onclick="uploadfile('file')" />
                </p>
        </div>
    </div>
</div>
<!--<div th:replace="fragments/footer :: footer">...</div>-->

<script src="../../js/system/system.js" th:src="@{/js/system/system.js}"></script>
</body>
</html>